package com.seedwill.common.model;

import com.seedwill.common.schema.IIdentityProfile;

/**
 * 
 * 简单子信息
 * 
 * @author kdyi
 *
 */
public class SimpleChild {

	private String childSchema;
	/**
	 * 子类型
	 */
	private Class childType;
	/**
	 * 提交的子属性在ACTION
	 */
	private String postPropName;
	/**
	 * 子属性
	 */
	private String childPropName;
	/**
	 * 外键属性
	 */
	private String foreignPropName;
	
	/**
	 * 子属性数组
	 */
	private java.io.Serializable[] childPropValue;
	
	private IIdentityProfile idtProfile;
	
	
	public IIdentityProfile getIdtProfile() {
		return idtProfile;
	}

	public void setIdtProfile(IIdentityProfile idtProfile) {
		this.idtProfile = idtProfile;
	}
	
	
	public SimpleChild(Class childType, String postPropName, String childPropName,
			String foreignPropName) {
		super();
		this.childType = childType;
		this.postPropName = postPropName;
		this.childPropName = childPropName;
		this.foreignPropName = foreignPropName;
	}

	public String getChildPropName() {
		return childPropName;
	}
	public void setChildPropName(String childPropName) {
		this.childPropName = childPropName;
	}
	public String getForeignPropName() {
		return foreignPropName;
	}
	public void setForeignPropName(String foreignPropName) {
		this.foreignPropName = foreignPropName;
	}
	public java.io.Serializable[] getChildPropValue() {
		return childPropValue;
	}
	public void setChildPropValue(java.io.Serializable[] childPropValue) {
		this.childPropValue = childPropValue;
	}

	public Class getChildType() {
		return childType;
	}

	public void setChildType(Class childType) {
		this.childType = childType;
	}

	public String getPostPropName() {
		return postPropName;
	}

	public void setPostPropName(String postPropName) {
		this.postPropName = postPropName;
	}

	public String getChildSchema() {
		return childSchema;
	}

	public void setChildSchema(String childSchema) {
		this.childSchema = childSchema;
	}
	
}
